package com.dongdongshop.feignservice;

import com.dongdongshop.data.DataResult;
import com.dongdongshop.pojo.user.TbAddress;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author Eayon
 */
@FeignClient(value = "SPRINGCLOUD-USER-SERVICE")
public interface AddressFeignService {

    @GetMapping("/address/byId/{id}")
    DataResult<TbAddress> findAddressById(@PathVariable("id")Long id);
}
